In Simulation mode most M Codes are ignored/skipped. The idea is that when simulating you wouldn't want to have your Spindle Switching on and such.
If you turn Simulation mode off that line of code should execute and print to the Console Screen. Of course you will need a KFLOP connected as that code executes inside KFLOP.
If you configure things as an open loop system (ie InitKStep3Axis.c) then you can even run GCode without any CNC hardware (or a KSTEP). KFLOP will be generating Step Pulses and so forth but will be unaware that nothing is actually moving.
HTH
Regards
TK